<!-- 机构管理员 -->
<template>
	<view>
		<!-- 自定义导航栏 -->
		<view class="navBarBox">
			<!-- 状态栏占位 -->
			<view class="statusBar" :style="{ paddingTop: statusBarHeight + 'px' }"></view>
			<!-- 真正的导航栏内容 -->
			<view class="navBar ">
				<view class="navBars">星火教育</view>
			</view>
		</view>
		<p class="with"></p>
		<!-- 页面内容 -->
		<view class="box">
			<view class="with"></view>
			<image src="../static/img/banner.f5fef52.png" mode=""></image>
			<view class=" resources">
				<span class="span1">教资面试课上线</span>
				<span class="span2">老学员充值立减100元</span>
			</view>
			<view class="ul">
				<ul>
					<li class="li2" hover-class="ui-share-hover">
						<view @click="goCourseAdd">申报课程</view>
					</li>
				<li class="li1" hover-class="ui-share-hover">
					<view @click="inviteCourse">邀约课程</view>
				</li>
					<li class="li3" hover-class="ui-share-hover">
						<view @click="goTeacher">老师管理</view>
					</li>
					<li class="li4" hover-class="ui-share-hover">
						<view @click="goOpenedCourse">已开课程</view>
					</li>
					<!-- <li class="li5" hover-class="ui-share-hover" >
						<view @click="goOpenedCourse">已开课程</view>
					</li> -->
				</ul>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				id:1,
				User:null,
				// 状态栏高度
				statusBarHeight: 0,
				// 导航栏高度
				navBarHeight: 82 + 11,
			}
		},
		methods: {
			// 申报课程
			goCourseAdd() {
				//在起始页面跳转到test.vue页面并传递参数
			
				uni.navigateTo({
					// url: './coursemanag/courseAddList?id='+this.User.orgId,
					url: './coursemanag/courseAddList?id='+this.id
				})
			},
			// 邀约课程
			inviteCourse() {
				uni.navigateTo({
					
					// url: './coursemanag/courseInviteList?id='+this.User.orgId
					url: './coursemanag/courseInviteList?id='+this.id
				})
			},
			//去老师管理页
			goTeacher() {
				uni.navigateTo({
					// url: 'teachmanag/teacherManagMy?id='+this.User.orgId
					url: 'teachmanag/teacherManagMy?id='+this.id
				})
			},
			//去班级管理页
			goclass(){
				uni.navigateTo({
					// url: 'classmanag/classmanaglist?id='+this.User.orgId
					url: 'classmanag/classmanaglist?id='+this.id
				})
			},
			//去已开课程页
			goOpenedCourse(){
				uni.navigateTo({
					// url: 'opencourse/opencoursemanag?id='+this.User.orgId
					url: 'opencourse/opencoursemanag?id='+this.id
				})
			}
		},
		//第一次加载时调用
		created() {
			//获取手机状态栏高度
			this.statusBarHeight = uni.getSystemInfoSync()['statusBarHeight'];
			this.User=uni.getStorageSync('schAdminConfirmData')
		},
		onLoad() {
			
		},
		onShow() {
			console.log(this.User,'存进来的用户')
		}
	}
</script>

<style lang="less">
.ui-share-hover{
   opacity: 0.9;//透明度变化
   transform: scale(0.9,0.9);//缩放
 }
.navBarBox{	
	background-image: url(../static/img/mechanism.png);
	height: 332rpx;
	background-size:100%
	}
.navBarBox .statusBar {background-color: #2eb3fe;} 
.navBarBox .navBar {
	// padding: 3rpx 50rpx;
	padding-bottom: 20rpx;
	display: flex;
	flex-direction: row;
	// justify-content: center;
	// align-items: center;
	background-color: #2eb3fe;
	padding-top: 10rpx;
	padding-left: 20rpx;
}
.navBars{
	padding: 0rpx 15rpx;
	height: 60rpx;
	background-color:#82d1fe;
	border-radius: 30rpx;
	display: flex;
	justify-content: center;
	align-items: center;
	color:#ffffff;
	font-size: 36rpx;
	font-weight: 900;
	// position: fixed;
	// left: 30rpx;
	// top: 60;
	// z-index: 9;
}
.navBarBox .navBar .logo {
	width: 82rpx;
	height: 82rpx;
	margin-right: 10rpx;
	background-color: #2eb3fe;
}
.box{
	width: 100%;
	background-color: #fafafa;
}
.box image{
	width:714rpx;
	position: relative;
	left: 20rpx;
	top: -185rpx;
}
.resources{
	margin-top: -185rpx;
	background: url(../static/img/organizationBack2.a6ecd49.png) no-repeat;
	height:240rpx;
	background-size:95%  100%;
	text-align: center;
	overflow: hidden;
	.span1{
		margin-top: 60rpx;
		margin-left: 30rpx;
		font-size: 42rpx;
		color: rgb(255,255,255);
		display: block;
	};
	.span2{
		display: block;
		font-size: 24rpx;
		color: rgb(255,236,177);
		background-color: #ff9521;
		border-radius: 20rpx;
		width: 260rpx;
		height: 40rpx;
		line-height: 40rpx;
		display: block;
		margin-left: 35%;
		margin-top: 20rpx;
	}
}
.ul ul{
		list-style: none;
		display: flex;
		flex-wrap:wrap;
		justify-content:  space-around;
		
		.li1 view{
			flex: 1;
			background:url(../static/img/01.3356375.png);
			height: 225rpx;
			width: 335rpx;
			background-size: cover;
			margin-top: 23rpx;
		}
		.li2 view{
			flex: 1;
			background: url(../static/img/02.981ce89.png);
			height: 225rpx;
			width: 335rpx;
			background-size: cover;
			margin-top: 23rpx;
		}
		.li3 view{
			flex: 1;
			background: url(../static/img/03.6aa4454.png);
			height: 225rpx;
			width: 335rpx;
			background-size: cover;
			margin-top: 23rpx;
			
		}
		.li4 view{
			flex: 1;
			background: url(../static/img/04.36b0cf2.png);
			height: 225rpx;
			width: 335rpx;
			background-size: cover;
			margin-top: 23rpx;
			
		}
		.li5 view{
			flex: 2;
			background: url(../static/img/05.c6cac5f.png);
			height: 225rpx;
			width:710rpx;
			background-size: 100% 100%;
			margin-top: 23rpx;
			margin-bottom: 20rpx;
		}
		li view{
			font-size: 44rpx;
			line-height: 214rpx;
			color: rgb(255,255,255);
			padding-left: 20rpx;
		}
	}
</style>
